import request from '@/utils/request'
import { downFile } from '@/utils/request'

/**
* 认证记录表分页查询
* @param {查询条件} data
*/
export function listVeriRecord(query) {
  return request({
    url: 'auth/VeriRecord/list',
    method: 'get',
    params: query,
  })
}


/**
* 新增认证记录表
* @param data
*/
export function addVeriRecord(data) {
  return request({
    url: 'auth/VeriRecord',
    method: 'post',
    data: data,
  })
}

/**
* 修改认证记录表
* @param data
*/
export function updateVeriRecord(data) {
  return request({
    url: 'auth/VeriRecord',
    method: 'PUT',
    data: data,
  })
}

/**
* 获取认证记录表详情
* @param {Id}
*/
export function getVeriRecord(id) {
  return request({
    url: 'auth/VeriRecord/' + id,
    method: 'get'
  })
}

/**
* 删除认证记录表
* @param {主键} pid
*/
export function delVeriRecord(pid) {
  return request({
    url: 'auth/VeriRecord/' + pid,
    method: 'delete'
  })
}

// 清空认证记录表
export function clearVeriRecord() {
  return request({
    url: 'auth/VeriRecord/clean',
    method: 'delete'
  })
}

// 导出认证记录表
export async function exportVeriRecord(query) {
  await downFile('auth/VeriRecord/export', { ...query })
}

